<template>
		<view>
			<view  class="header">
				<text>日常检查</text>
			</view>
			<view class="left">
				<view v-for="(item,index) in sysitem" :key="index" @click="tzfn(item.url)">
					<text>{{item.text}}</text>
				</view>
			</view>
			<view class="input">
				<text>查询</text>
				<input type="text" value="" placeholder="请输入单位名称" placeholder-style="color:#bebebe"/>
			</view>
			<view class="aduio">
				<view class="aduio_cel">
					<view class="audio_cell_right">
						<view v-for="(item,index) in sysitem" :key="index" @click="tzfn(item.url)">
							<text>{{item.chakan}}</text>
						</view>
					</view>
					<view class="aduio_cell">
						<text>单位名称</text>
						<text>美的空调销售有限公司</text>
					</view>
					<view class="aduio_cell">
						<text>检查日期</text>
						<text>2020-12-11</text>
					</view>
					<view class="aduio_cell">
						<text>检查结果</text>
						<text>正常</text>
					</view>
				</view>
			</view>
		</view>
</template>

<script>
	import {ref,reactive,toRefs} from 'vue'
	export default {
		setup(){
			let data=reactive({
				sysitem:[
				{text:'新增',url:'/pages/shuiliju/rcjc_xingzeng'},
				{chakan:'查看',url:'/pages/shuiliju/rcjc_chakan'}
				
				],
				tzfn:(ev)=>{
					uni.navigateTo({
						url:ev
					})
				}
			})
			return  {...toRefs(data)  };
		}
	}
</script>

<style lang="scss">
	.header{
		text-align: center;
	}
	.left{
		color: #0079fe;
		margin: 0 0 0 10rpx;
	}
	// .right{
	// 	float: right;
	// 	color: #0079fe;
	// 	margin: 0 10rpx 0 0;
	// }
	.input{
		height: 100rpx;
		border-top: 1rpx solid #f2f2f2;
		border-bottom: 1rpx solid #f2f2f2;
		margin-top: 10rpx;
	}
	.input input{
		margin-top: 10rpx;
	    margin-left: 10rpx;
		width: 500rpx;
		height: 80rpx;
		border: 1rpx solid #f2f2f2;
		border-radius: 20rpx;
		font-size: 45rpx;
	}
	.input text{
		float: right;
		margin: 30rpx 10rpx 0 0;
		color: #008efe;
	}
	.aduio{
		height: 200rpx;
		border-top: 1rpx solid #f2f2f2;
		border-bottom: 1rpx solid #f2f2f2;
		margin-top: 10rpx;
	}
	.aduio_cel{
		margin: 20rpx 0 0 10rpx;
	}
	.aduio_cell{
		margin: 0 0 8rpx 0;
	}
	.aduio_cell text:first-child{
		font-weight: bold;
		color: #808080;
	}
	.aduio_cell text:last-child{
		margin: 0 0 0 100rpx;
		margin-bottom: 10rpx;
		color: #666666;
	}
	.audio_cell_right{
		color: #008efe;
		float: right;
		margin: 50rpx 10rpx 0 0;
	}
</style>

